home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2001 May / SGI IRIX Base Documentation 2001 May.iso / usr / share / catman / p_man / cat3 / X11 / XrmEnumerateDatabase.z / XrmEnumerateDatabase
Encoding:
Text File  |  1998-10-30  |  5.0 KB  |  139 lines

  1.  
  2.  
  3.  
  4.      XXXXrrrrmmmmEEEEnnnnuuuummmmeeeerrrraaaatttteeeeDDDDaaaattttaaaabbbbaaaasssseeee((((3333XXXX11111111))))XXXX VVVVeeeerrrrssssiiiioooonnnn 11111111 ((((RRRReeeelllleeeeaaaasssseeee 6666....3333))))XXXXrrrrmmmmEEEEnnnnuuuummmmeeeerrrraaaatttteeeeDDDDaaaattttaaaabbbbaaaasssseeee((((3333XXXX11111111))))
  5.  
  6.  
  7.  
  8.      NNNNAAAAMMMMEEEE
  9.           XrmEnumerateDatabase - enumerate resource database entries
  10.  
  11.      SSSSYYYYNNNNTTTTAAAAXXXX
  12.           #define
  13.                     _X_r_m_E_n_u_m_A_l_l_L_e_v_e_l_s
  14.                                            0
  15.           #define
  16.                     _X_r_m_E_n_u_m_O_n_e_L_e_v_e_l
  17.                                            1
  18.  
  19.           Bool XrmEnumerateDatabase(_d_a_t_a_b_a_s_e, _n_a_m_e__p_r_e_f_i_x, _c_l_a_s_s__p_r_e_f_i_x, _m_o_d_e, _p_r_o_c, _a_r_g)
  20.                 XrmDatabase _d_a_t_a_b_a_s_e;
  21.                 XrmNameList _n_a_m_e__p_r_e_f_i_x;
  22.                 XrmClassList _c_l_a_s_s__p_r_e_f_i_x;
  23.                 int _m_o_d_e;
  24.                 Bool (*_p_r_o_c)();
  25.                 XPointer _a_r_g;
  26.  
  27.      AAAARRRRGGGGUUUUMMMMEEEENNNNTTTTSSSS
  28.           _d_a_t_a_b_a_s_e  Specifies the resource database.
  29.  
  30.           _n_a_m_e__p_r_e_f_i_x
  31.                     Specifies the resource name prefix.
  32.  
  33.           _c_l_a_s_s__p_r_e_f_i_x
  34.                     Specifies the resource class prefix.
  35.  
  36.           _m_o_d_e      Specifies the number of levels to enumerate.
  37.  
  38.           _p_r_o_c      Specifies the procedure that is to be called for
  39.                     each matching entry.
  40.  
  41.           _a_r_g       Specifies the user-supplied argument that will be
  42.                     passed to the procedure.
  43.  
  44.      DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  45.           The _X_r_m_E_n_u_m_e_r_a_t_e_D_a_t_a_b_a_s_e function calls the specified
  46.           procedure for each resource in the database that would match
  47.           some completion of the given name/class resource prefix.
  48.           The order in which resources are found is implementation-
  49.           dependent.  If mode is _X_r_m_E_n_u_m_O_n_e_L_e_v_e_l, a resource must
  50.           match the given name/class prefix with just a single name
  51.           and class appended.  If mode is _X_r_m_E_n_u_m_A_l_l_L_e_v_e_l_s, the
  52.           resource must match the given name/class prefix with one or
  53.           more names and classes appended.  If the procedure returns
  54.           _T_r_u_e, the enumeration terminates and the function returns
  55.           _T_r_u_e.  If the procedure always returns _F_a_l_s_e, all matching
  56.           resources are enumerated and the function returns _F_a_l_s_e.
  57.  
  58.           The procedure is called with the following arguments:
  59.  
  60.           (*_p_r_o_c)(_d_a_t_a_b_a_s_e, _b_i_n_d_i_n_g_s, _q_u_a_r_k_s, _t_y_p_e, _v_a_l_u_e, _a_r_g)
  61.                XrmDatabase *_d_a_t_a_b_a_s_e;
  62.                XrmBindingList _b_i_n_d_i_n_g_s;
  63.                XrmQuarkList _q_u_a_r_k_s;
  64.  
  65.  
  66.  
  67.      Page 1                                          (printed 4/30/98)
  68.  
  69.  
  70.  
  71.  
  72.  
  73.  
  74.      XXXXrrrrmmmmEEEEnnnnuuuummmmeeeerrrraaaatttteeeeDDDDaaaattttaaaabbbbaaaasssseeee((((3333XXXX11111111))))XXXX VVVVeeeerrrrssssiiiioooonnnn 11111111 ((((RRRReeeelllleeeeaaaasssseeee 6666....3333))))XXXXrrrrmmmmEEEEnnnnuuuummmmeeeerrrraaaatttteeeeDDDDaaaattttaaaabbbbaaaasssseeee((((3333XXXX11111111))))
  75.  
  76.  
  77.  
  78.                XrmRepresentation *_t_y_p_e;
  79.                XrmValue *_v_a_l_u_e;
  80.                XPointer _a_r_g;
  81.  
  82.           The bindings and quarks lists are terminated by _N_U_L_L_Q_U_A_R_K.
  83.           Note that pointers to the database and type are passed, but
  84.           these values should not be modified.
  85.  
  86.           The procedure must not modifiy the database.  If Xlib has
  87.           been initialized for threads, the procedure is called with
  88.           the database locked and the result of a call by the
  89.           procedure to any Xlib function using the same database is
  90.           not defined.
  91.  
  92.      SSSSEEEEEEEE AAAALLLLSSSSOOOO
  93.           XrmGetResource(3X11), XrmInitialize(3X11),
  94.           XrmPutResource(3X11)
  95.           _X_l_i_b - _C _L_a_n_g_u_a_g_e _X _I_n_t_e_r_f_a_c_e
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.  
  130.  
  131.  
  132.  
  133.      Page 2                                          (printed 4/30/98)
  134.  
  135.  
  136.  
  137.